package com.zoagroup.funzy;


import javax.persistence.EntityManager;

import com.zoagroup.funzy.entity.User;
import com.zoagroup.funzy.persistence.JPAUtil;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		EntityManager em = JPAUtil.getInstance().getEntityManager();
		
		//Rock 'n Roll
		User usr = em.find(User.class, 1);
		// stop rocking!
		
		em.getTransaction().commit();
		em.close();
		
		JPAUtil.getInstance().closeEntityFactory();
	}

}
